package com.访问者模式.案列1;

public class Test {

    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.attach(new Man());
        objectStructure.attach(new Woman());
        //通过的评价
        objectStructure.display(new SuccessAction());

        //失败的评价
        objectStructure.display(new FailAction());

        //待定的评价
        objectStructure.display(new WaitAction());
    }
}
